import createAPI from '../axios';

// swagger地址：
const home = {
  // 获取菜单
  getMenu: (param) => createAPI(`${window.conf.domain2}/auth/v1/common/menu?appId=${param}`, 'get'),
  initTree: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/taskSaveHeliumService/getCollect`, 'post', param), // 树结构
  sourceInfo: (param) => createAPI(`${window.conf.domain}/asset/v1/feign/query/queryTableInfoByTableId?tableId=${param}`, 'get'), // 接入源信息
  sourceInfoOver: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/taskSaveHeliumService/queryOriginalTableInfoByTaskId/${param}`, 'get'), // 接入源信息
  sourceInfoHas: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/taskSaveHeliumService/queryHeliumTask/${param}`, 'get'), // 接入源信息
  dictionaryList: (params) => createAPI(`${window.conf.domain}/asset/v1/redis/getList`, 'post', params), // 获取字典信息
  getAllExpression: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/expressionService/getAllExpression`, 'get', param), // 获取规则列表
  validateExpression: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/expressionService/validateExpression`, 'post', param), // 校验
  submitInfo: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/taskSaveHeliumService/saveHeliumTask`, 'post', param), // 单表采集提交
  updateInfo: (param) => createAPI(`${window.conf.domain1}/base-unified-access/access/v1/taskSaveHeliumService/updateHeliumTask`, 'post', param), // 单表采集修改
  validOut: (param) => createAPI(`${window.conf.domain}/asset/v1/resourceCenter/getTableExist`, 'post', param), // 结果输出验证
  buildStandardColumn: (param) => createAPI(`${window.conf.domain}/asset/v1/feign/content/query/buildStandardColumn`, 'post', param), // 对比获取标准化数据元
};
export default home;
